// eslint-disable-next-line
const echarts = equire([
  // 写上你需要的 echarts api
  'tooltip',
  'toolbox',
  'title',
  'legend',
  'legendScroll',
  'line',
  'bar',
  'pie'
])

export default echarts

// echarts 5.0.2 的按需导入方式
// import * as echarts from 'echarts/core'
// import { GridComponent, TooltipComponent, LegendComponent, ToolboxComponent } from 'echarts/components'
// import { LineChart, BarChart, PieChart } from 'echarts/charts'
// import { SVGRenderer } from 'echarts/renderers'
//
// // Must import at least one renderer.
// // If you only want to render with SVG, just replace the CanvasRenderer with SVGRenderer.
// // So the CanvasRenderer won't be included in the final bundle.
// echarts.use([GridComponent, TooltipComponent, LegendComponent, ToolboxComponent, LineChart, BarChart, PieChart, SVGRenderer])
//
// export default echarts
